package cn.edu.scau.cmi.liqiquan.abstractFactory.factory;

import cn.edu.scau.cmi.liqiquan.simpleFactory.AccidentInsurance;
import cn.edu.scau.cmi.liqiquan.simpleFactory.AutomobileDamageInusrance;
import cn.edu.scau.cmi.liqiquan.simpleFactory.CasualtiesInsurance;
import cn.edu.scau.cmi.liqiquan.simpleFactory.InjuryInsurance;
import cn.edu.scau.cmi.liqiquan.simpleFactory.Insurance;

public abstract class AbstracFactory {
	public static AbstracFactory getFactory(String brand) {
		switch(brand) {
		case "PICC":
			return new PICCFactory();
		case "PingAn":
			return new PingAnFactory();
		default:break;
		}
		return null;
	}
	
	public abstract InjuryInsurance createInjuryInsurance();
	public abstract AutomobileDamageInusrance createAutomobileDamageInusrance();
	public abstract CasualtiesInsurance createCasualtiesInsurance();
	public abstract AccidentInsurance createAccidentInsurance();
}
